import java.math.BigInteger;
import java.util.Scanner;
public class zifuchuan { 
  public static void main(String[] args) {
    Scanner cin = new Scanner(System.in);
    String str = cin.nextLine();
    StringBuffer sb = new StringBuffer(str);
    System.out.print(sb.reverse().toString());
}
}